// 根路由配置
import VueRouter from 'vue-router' // vue路由

import {
    home_route
} from './home_route.js'
// import { login_route } from './login_route.js'
// import {
//     hello_route
// } from './hello_route.js'

const routes = [
    home_route,
    {
        path: '*',
        redirect: '/home'
    }
]


const router_config = { //路由配总配置
    // mode: 'hash', // 路由hash模式
    mode: 'history', //h5路由模式
    routes: routes //路由地址配置数组
}


const router = new VueRouter(router_config)

export default router